import request from '@/utils/request'

// 半成品入库单列表
export function queryMopartsList(data) {
  return request({
    url: '/tPrdMoparts/queryMopartsList',
    method: 'post',
    data
  })
}
// 半成品入库单详情
export function queryMopartsDetails(params) {
  return request({
    url: '/tPrdMoparts/queryMopartsDetails',
    method: 'get',
    params
  })
}
// 生产用料单下推半成品入库单
export function insertMoparts(data) {
  return request({
    url: '/tPrdMoparts/insertMoparts',
    method: 'post',
    data
  })
}
// 修改部件入库单
export function updateMoparts(data) {
  return request({
    url: '/tPrdMoparts/updateMoparts',
    method: 'put',
    data
  })
}
// 删除部件入库单
export function mopartsDelete(data) {
  return request({
    url: '/tPrdMoparts/mopartsDelete',
    method: 'delete',
    data
  })
}
// 提交部件入库单
export function mopartsSubmit(data) {
  return request({
    url: '/tPrdMoparts/mopartsSubmit',
    method: 'put',
    data
  })
}
// 反提交部件入库单
export function mopartsAuSubmit(data) {
  return request({
    url: '/tPrdMoparts/mopartsAuSubmit',
    method: 'put',
    data
  })
}
// 审核部件入库单
export function mopartsAudit(data) {
  return request({
    url: '/tPrdMoparts/mopartsAudit',
    method: 'put',
    data
  })
}
// 反审核部件入库单
export function mopartsUnAudit(data) {
  return request({
    url: '/tPrdMoparts/mopartsUnAudit',
    method: 'put',
    data
  })
}
